<?php
function __autoload($class_name) {
    $fullclasspath = "";
    $suffix = "";
    if (!file_exists('inc/' . $fullclasspath . $class_name . ".php")) {
        if (!file_exists('inc/' . $fullclasspath . $class_name . ".class.php")) {
            if (file_exists('inc/utility/' . $class_name . ".class.php")) {
                $fullclasspath = "utility/";
                $suffix = ".class";
            }
        } else {
            $suffix = ".class";
        }
    }
    //echo 'inc/' . $fullclasspath . $class_name . $suffix . '.php<br />';
    require_once 'inc/' . $fullclasspath . $class_name . $suffix . '.php';
}

?>
